/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commands;

import IA.InformationAggregator;

/**
 *
 * @author Rob Leister rleist1@students.towson.edu
 */
public class CmdSetNumberOfTables extends Command {

    private int totalTable;

    public CmdSetNumberOfTables(InformationAggregator ia, String totalNumOfTables) {
        super(ia);
        totalTable = Integer.parseInt(totalNumOfTables);
    }

    @Override
    public Object execute() {
        ia.getTableCollection().setTotalNumberOfTables(totalTable);
        return null;
    }
} // end class CmdSetNumberOfTables
